package com.rc.pojo.po;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Builder;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@Builder
@Table(value = "integral_detail", schema = "rc")
public class IntegralDetail {
    @Id(keyType = KeyType.Generator, value = KeyGenerators.snowFlakeId)
    private Long id;

    private String title;

    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    @Column(tenantId = true)
    private Long conId;

    private Integer integral;
}
